{include file="header"}
<script src="/xcxmb/publpic/static/js/ckeditor/ckeditor.js"></script>
<style>
    td { height:32px;}
</style>
<div class="body">
    <div class="nav">
        <a href="/xcxmb/public/admin/first/index">首页</a> > <a href="/xcxmb/public/admin/record/index">积分流水</a> >
    </div>
    <div class="addbtn">
		<a href="#" class="addbtn"></a>
	</div>
	<div class="search">
		<form action="" method="get">
		<input type="hidden" name="app" id="app" value="product" />
		<input type="hidden" name="act" id="act" value="index" />
		<span>ID</span><input title="id" type="text" name="id" id="id" value="{$id}" />
		<span>关键词</span><input title="关键词" type="text" name="keyword" id="keyword" value="{$keyword}" />
		<span>状态</span>
			<input type="submit" class="btn" value="搜 索"/>
		<div class="clear"></div>
		</form>
	</div>
    <div class="list">
        <table width="100%" border="0" cellspacing="1" cellpadding="0">
            <tr class="h">
                <th>流水号:ID</th>
                <th>用户ID</th>
                <th>用户名</th>
                <th>收入</th>
                <th>支出</th>
                <th>可用积分</th>
                <th>事由</th>
                <th>备注</th>
                <th>发生时间</th>
            </tr>
            {foreach name="list" item="row"}
            <tr bgcolor="white">
                <td align="center">{$row.id}</td>
                <td align="center">{$row.user_id}</td>
                <td align="center">{$row.username}</td>
                {if $row.type==0}
                <td align="center">{$row.jifen}</td>
                {else}
                <td align="center">--</td>
                {/if}
                {if $row.type==1}
                <td align="center">{$row.jifen}</td>
                {else}
                <td align="center">--</td>
                {/if}

                <td align="center">{$row.balance}</td>
                <td align="center">{$row.reason}</td>
                <td align="center">流水号:{$row.note}</td>
                <td align="center">{$row.add_time|date="Y-m-d h:i:s",###}</td>
            </tr>
            {/foreach}
        </table>
        <div class="clear"></div>
        <div class="mypage" style="text-align:right">
            共 {$maxpages} 个数据 {$page}
        </div>
    </div>
</div>
{include file="footer"}